---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
      name:  <unnamed>
       log:  /Users/jesse/Dropbox/Ohio-HallResearch/Code/replication/table_a4.log
  log type:  text
 opened on:  11 Jun 2020, 12:40:45

. 
. use "$path/foreclosures_analysis.dta", clear

. 
. // lagged dv setup
. replace lag_pres = lag_pres * 100
(9,540 real changes made)

. 
. // trump effect
. 
. gen trump = year == 2016

. gen fore_trump = foreclosure_rate*trump

. 
. // trump recency effects
. gen fore_trump_six = foreclosure_rate_six*trump
(356 missing values generated)

. 
. bootstrap _b, rep(1e3) seed(94305) cluster(fips) force: reghdfe pres_vs lag_pres foreclosure_rate_six fore_trump_six trump [aw=pop_y], a(sy) cluster(fips)
(running reghdfe on estimation sample)

Bootstrap replications (1000)
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000

HDFE Linear regression                          Number of obs     =      9,181
Absorbing 1 HDFE group                          Replications      =      1,000
                                                Wald chi2(3)      =   36930.89
                                                Prob > chi2       =     0.0000
                                                R-squared         =     0.9696
                                                Adj R-squared     =     0.9689
                                                Root MSE          =     2.7663

                                        (Replications based on 2,818 clusters in fips)
--------------------------------------------------------------------------------------
                     |   Observed   Bootstrap                         Normal-based
             pres_vs |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
---------------------+----------------------------------------------------------------
            lag_pres |   1.068558   .0057106   187.12   0.000     1.057365     1.07975
foreclosure_rate_six |   .3884307   .0962137     4.04   0.000     .1998553    .5770061
      fore_trump_six |  -4.348967   .3869339   -11.24   0.000    -5.107344   -3.590591
               trump |          0  (omitted)
--------------------------------------------------------------------------------------

Absorbed degrees of freedom:
-----------------------------------------------------------------------+
         Absorbed FE |  Num. Coefs.  =   Categories  -   Redundant     | 
---------------------+-------------------------------------------------|
                  sy |          196             196              0     | 
-----------------------------------------------------------------------+

. local b1 = _b[lag_pres]

. local se1 = _se[lag_pres]

. local b1_2 = _b[foreclosure_rate_six]

. local se1_2 = _se[foreclosure_rate_six]

. local bint1 = _b[fore_trump_six]

. local seint1 = _se[fore_trump_six]

. local n1 = e(N)

. local nclust1 = e(N_clust)

. 
. bootstrap _b, rep(1e3) seed(94305) cluster(fips) force: areg pres_vs lag_pres foreclosure_rate_six fore_trump_six trump [aw=pop_y], a(popyear) cluster(fips)
(running areg on estimation sample)

Bootstrap replications (1000)
----+--- 1 ---+--- 2 ---+--- 3 ---+--- 4 ---+--- 5 
..................................................    50
..................................................   100
..................................................   150
..................................................   200
..................................................   250
..................................................   300
..................................................   350
..................................................   400
..................................................   450
..................................................   500
..................................................   550
..................................................   600
..................................................   650
..................................................   700
..................................................   750
..................................................   800
..................................................   850
..................................................   900
..................................................   950
..................................................  1000

Linear regression, absorbing indicators         Number of obs     =      9,185
Absorbed variable: popyear                      No. of categories =         40
                                                Replications      =      1,000
                                                Wald chi2(3)      =   23231.07
                                                Prob > chi2       =     0.0000
                                                R-squared         =     0.9562
                                                Adj R-squared     =     0.9560
                                                Root MSE          =     3.3117

                                        (Replications based on 2,819 clusters in fips)
--------------------------------------------------------------------------------------
                     |   Observed   Bootstrap                         Normal-based
             pres_vs |      Coef.   Std. Err.      z    P>|z|     [95% Conf. Interval]
---------------------+----------------------------------------------------------------
            lag_pres |   .9928839   .0065818   150.85   0.000     .9799838    1.005784
foreclosure_rate_six |    .238456   .0868651     2.75   0.006     .0682036    .4087083
      fore_trump_six |  -3.920462   .3482833   -11.26   0.000    -4.603085   -3.237839
               trump |          0  (omitted)
               _cons |   1.204471   .3806524     3.16   0.002      .458406    1.950536
--------------------------------------------------------------------------------------

. local b2 = _b[lag_pres]

. local se2 = _se[lag_pres]

. local b2_2 = _b[foreclosure_rate_six]

. local se2_2 = _se[foreclosure_rate_six]

. local bint2 = _b[fore_trump_six]

. local seint2 = _se[fore_trump_six]

. local n2 = e(N)

. local nclust2 = e(N_clust)

. 
. log close
      name:  <unnamed>
       log:  /Users/jesse/Dropbox/Ohio-HallResearch/Code/replication/table_a4.log
  log type:  text
 closed on:  11 Jun 2020, 12:43:21
---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
